%% Parameters file for SPS model: power_motordrive_IPMSM_FOC.slx 

%% SPS sample time (s)
Ts=20e-6;         
%
%% Motor parameters
%
Tnom = 400;        % Nominal torque                 (N.m)
wnom = 1200;       % Nominal motor speed            (rpm)
wmax = 6000;       % Maximum motor speed            (rpm)
Ld = 1.597e-3;     % Stator d-axis inductance       (H)
Lq = 2.057e-3;     % Stator q-axis inductance       (H)
Rs = 6.5e-3;       % Stator resistance per phase    (Ohm)
lambda = 0.1757;   % Permanent magnet flux linkage  (V.s)
p = 4;             % Number of pole pairs
J = 0.09;          % Rotor inertia                  (Kg.m^2)
F = 0.002;         % Friction coefficient           (N.m.s)
Vdc_nom = 550;     % Nominal DC voltage (V)
%
%% Control parameters
%
% Speed regulator
Kp_wreg=3.5;          % Proportional gain
Ki_wreg=70;           % Integral gain
Limit_wreg=Tnom;      % Regulator output limit
%
% Torque Limiter
rpm_data= [0   1200 2000 3000 4000 5000 6000]; % Speed (rpm)
Tmax_data=[400 400  225  150  100  80   70  ]; % Torque(N.m)
%
% Current regulator
Kp_Ireg=2.4;                 % Proportional gain
Ki_Ireg=40;                  % Integral gain
Limit_Ireg=Vdc_nom/sqrt(3);  % Regulator output limit
%
Fsw=8000;                    % SVPWM switching frequency (Hz)
%
%%

